Optimal. Leaf size=94 \[ \frac {b \sqrt {c+d x} \cos \left (a+\frac {b}{\sqrt {c+d x}}\right )}{d}+\frac {b^2 \text {Ci}\left (\frac {b}{\sqrt {c+d x}}\right ) \sin (a)}{d}+\frac {(c+d x) \sin \left (a+\frac {b}{\sqrt {c+d x}}\right )}{d}+\frac {b^2 \cos (a) \text {Si}\left (\frac {b}{\sqrt {c+d x}}\right )}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {3442, 3378,
3384, 3380, 3383} \begin {gather*} \frac {b^2 \sin (a) \text {CosIntegral}\left (\frac {b}{\sqrt {c+d x}}\right )}{d}+\frac {b^2 \cos (a) \text {Si}\left (\frac {b}{\sqrt {c+d x}}\right )}{d}+\frac {(c+d x) \sin \left (a+\frac {b}{\sqrt {c+d x}}\right )}{d}+\frac {b \sqrt {c+d x} \cos \left (a+\frac {b}{\sqrt {c+d x}}\right )}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3378
Rule 3380
Rule 3383
Rule 3384
Rule 3442
Rubi steps
\begin {align*} \int \sin \left (a+\frac {b}{\sqrt {c+d x}}\right ) \, dx &=-\frac {2 \text {Subst}\left (\int \frac {\sin (a+b x)}{x^3} \, dx,x,\frac {1}{\sqrt {c+d x}}\right )}{d}\\ &=\frac {(c+d x) \sin \left (a+\frac {b}{\sqrt {c+d x}}\right )}{d}-\frac {b \text {Subst}\left (\int \frac {\cos (a+b x)}{x^2} \, dx,x,\frac {1}{\sqrt {c+d x}}\right )}{d}\\ &=\frac {b \sqrt {c+d x} \cos \left (a+\frac {b}{\sqrt {c+d x}}\right )}{d}+\frac {(c+d x) \sin \left (a+\frac {b}{\sqrt {c+d x}}\right )}{d}+\frac {b^2 \text {Subst}\left (\int \frac {\sin (a+b x)}{x} \, dx,x,\frac {1}{\sqrt {c+d x}}\right )}{d}\\ &=\frac {b \sqrt {c+d x} \cos \left (a+\frac {b}{\sqrt {c+d x}}\right )}{d}+\frac {(c+d x) \sin \left (a+\frac {b}{\sqrt {c+d x}}\right )}{d}+\frac {\left (b^2 \cos (a)\right ) \text {Subst}\left (\int \frac {\sin (b x)}{x} \, dx,x,\frac {1}{\sqrt {c+d x}}\right )}{d}+\frac {\left (b^2 \sin (a)\right ) \text {Subst}\left (\int \frac {\cos (b x)}{x} \, dx,x,\frac {1}{\sqrt {c+d x}}\right )}{d}\\ &=\frac {b \sqrt {c+d x} \cos \left (a+\frac {b}{\sqrt {c+d x}}\right )}{d}+\frac {b^2 \text {Ci}\left (\frac {b}{\sqrt {c+d x}}\right ) \sin (a)}{d}+\frac {(c+d x) \sin \left (a+\frac {b}{\sqrt {c+d x}}\right )}{d}+\frac {b^2 \cos (a) \text {Si}\left (\frac {b}{\sqrt {c+d x}}\right )}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 99, normalized size = 1.05 \begin {gather*} \frac {b \sqrt {c+d x} \cos \left (a+\frac {b}{\sqrt {c+d x}}\right )+b^2 \text {Ci}\left (\frac {b}{\sqrt {c+d x}}\right ) \sin (a)+c \sin \left (a+\frac {b}{\sqrt {c+d x}}\right )+d x \sin \left (a+\frac {b}{\sqrt {c+d x}}\right )+b^2 \cos (a) \text {Si}\left (\frac {b}{\sqrt {c+d x}}\right )}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 84, normalized size = 0.89
method | result | size |
derivativedivides | \(-\frac {2 b^{2} \left (-\frac {\sin \left (a +\frac {b}{\sqrt {d x +c}}\right ) \left (d x +c \right )}{2 b^{2}}-\frac {\cos \left (a +\frac {b}{\sqrt {d x +c}}\right ) \sqrt {d x +c}}{2 b}-\frac {\sinIntegral \left (\frac {b}{\sqrt {d x +c}}\right ) \cos \left (a \right )}{2}-\frac {\cosineIntegral \left (\frac {b}{\sqrt {d x +c}}\right ) \sin \left (a \right )}{2}\right )}{d}\) | \(84\) |
default | \(-\frac {2 b^{2} \left (-\frac {\sin \left (a +\frac {b}{\sqrt {d x +c}}\right ) \left (d x +c \right )}{2 b^{2}}-\frac {\cos \left (a +\frac {b}{\sqrt {d x +c}}\right ) \sqrt {d x +c}}{2 b}-\frac {\sinIntegral \left (\frac {b}{\sqrt {d x +c}}\right ) \cos \left (a \right )}{2}-\frac {\cosineIntegral \left (\frac {b}{\sqrt {d x +c}}\right ) \sin \left (a \right )}{2}\right )}{d}\) | \(84\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains complex when optimal does not.
time = 0.39, size = 124, normalized size = 1.32 \begin {gather*} \frac {{\left ({\left (-i \, {\rm Ei}\left (\frac {i \, b}{\sqrt {d x + c}}\right ) + i \, {\rm Ei}\left (-\frac {i \, b}{\sqrt {d x + c}}\right )\right )} \cos \left (a\right ) + {\left ({\rm Ei}\left (\frac {i \, b}{\sqrt {d x + c}}\right ) + {\rm Ei}\left (-\frac {i \, b}{\sqrt {d x + c}}\right )\right )} \sin \left (a\right )\right )} b^{2} + 2 \, \sqrt {d x + c} b \cos \left (\frac {\sqrt {d x + c} a + b}{\sqrt {d x + c}}\right ) + 2 \, {\left (d x + c\right )} \sin \left (\frac {\sqrt {d x + c} a + b}{\sqrt {d x + c}}\right )}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 125, normalized size = 1.33 \begin {gather*} \frac {b^{2} \operatorname {Ci}\left (\frac {b}{\sqrt {d x + c}}\right ) \sin \left (a\right ) + b^{2} \operatorname {Ci}\left (-\frac {b}{\sqrt {d x + c}}\right ) \sin \left (a\right ) + 2 \, b^{2} \cos \left (a\right ) \operatorname {Si}\left (\frac {b}{\sqrt {d x + c}}\right ) + 2 \, \sqrt {d x + c} b \cos \left (\frac {a d x + a c + \sqrt {d x + c} b}{d x + c}\right ) + 2 \, {\left (d x + c\right )} \sin \left (\frac {a d x + a c + \sqrt {d x + c} b}{d x + c}\right )}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sin {\left (a + \frac {b}{\sqrt {c + d x}} \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 413 vs.
\(2 (84) = 168\).
time = 4.29, size = 413, normalized size = 4.39 \begin {gather*} \frac {a^{2} b^{3} \operatorname {Ci}\left (-a + \frac {\sqrt {d x + c} a + b}{\sqrt {d x + c}}\right ) \sin \left (a\right ) - a^{2} b^{3} \cos \left (a\right ) \operatorname {Si}\left (a - \frac {\sqrt {d x + c} a + b}{\sqrt {d x + c}}\right ) - \frac {2 \, {\left (\sqrt {d x + c} a + b\right )} a b^{3} \operatorname {Ci}\left (-a + \frac {\sqrt {d x + c} a + b}{\sqrt {d x + c}}\right ) \sin \left (a\right )}{\sqrt {d x + c}} + \frac {2 \, {\left (\sqrt {d x + c} a + b\right )} a b^{3} \cos \left (a\right ) \operatorname {Si}\left (a - \frac {\sqrt {d x + c} a + b}{\sqrt {d x + c}}\right )}{\sqrt {d x + c}} + \frac {{\left (\sqrt {d x + c} a + b\right )}^{2} b^{3} \operatorname {Ci}\left (-a + \frac {\sqrt {d x + c} a + b}{\sqrt {d x + c}}\right ) \sin \left (a\right )}{d x + c} - \frac {{\left (\sqrt {d x + c} a + b\right )}^{2} b^{3} \cos \left (a\right ) \operatorname {Si}\left (a - \frac {\sqrt {d x + c} a + b}{\sqrt {d x + c}}\right )}{d x + c} - a b^{3} \cos \left (\frac {\sqrt {d x + c} a + b}{\sqrt {d x + c}}\right ) + \frac {{\left (\sqrt {d x + c} a + b\right )} b^{3} \cos \left (\frac {\sqrt {d x + c} a + b}{\sqrt {d x + c}}\right )}{\sqrt {d x + c}} + b^{3} \sin \left (\frac {\sqrt {d x + c} a + b}{\sqrt {d x + c}}\right )}{{\left (a^{2} - \frac {2 \, {\left (\sqrt {d x + c} a + b\right )} a}{\sqrt {d x + c}} + \frac {{\left (\sqrt {d x + c} a + b\right )}^{2}}{d x + c}\right )} b d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \sin \left (a+\frac {b}{\sqrt {c+d\,x}}\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________